package com.mrd.gtimp.business.repository;

import com.mrd.gtimp.business.entity.Declaration;
import com.mrd.gtimp.business.entity.SuiFuDan;
import com.mrd.spring.repository.BaseRepository;

import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * <p>
 * application name: gtimp
 * <p>
 * copyright: Copyright@2012 明睿达科技有限公司
 */

/**
 * @author luob
 */
public interface SuiFuDanDao extends BaseRepository<SuiFuDan, String> {
	List<SuiFuDan> findByDeclaration(Declaration declaration);

	@Query("select t from com.mrd.gtimp.business.entity.SuiFuDan t where t.temp_id = ?")
	List<SuiFuDan> findByTempId(String tempId);
}
